$def with (posts)

<h3 class="text-center">知乎话题统计列表</h3>
<div class="row">
    <div class="col-sm-10  col-sm-offset-1 ">
        <table class="   table table-striped table-bordered table-hover table-condensed table-responsive" id="tables">
            <tr class="success text-center">
                <!-- <td><strong>url</strong></td> -->
                <td><strong>话题</strong></td>
                <td> <strong>回答个数</strong> </td>
                <td> <strong>关注人数</strong></td>
                <td> <strong>被浏览次数</strong></td>
            </tr>
            $for post in posts:
            <tr>
                <!-- <td>$post['url']</td> -->
                <td>$post['title']</td>
                <td>$post['answerCount']</td>
                <td>$post['numberBoard_itemValue1']</td>
                <td>$post['numberBoard_itemValue2']</td>
            </tr>
        </table>
    </div>
</div>

<div class="row row-no-gutters text-center">
    <div class="col-xs-6  "><a href="/" class="btn btn-lg btn-default  " style="width: 80%">返回</a></div>
    <div class="col-xs-6  "><button type="button" id="export" class="btn btn-lg btn-info  " style="width: 80%">导出Excel</button></div>
</div>
<script type="text/javascript">
    $$(document).ready(function() {
        $$("#export").click(function() {
            $$("#tables").tableExport({
                type: "excel",
                escape: "false",
            });
        });
    });
</script>